<?php


class Teacher
{
public $name;
public $age;
public $like;

public static $count;
const NAME = "教师类";
function study(){
    echo$this->name."在学习";
}
function sbook(){
    echo $this->name."在教书";
}
public function __toString()
{
   return "这是一个".self::NAME.__CLASS__."老师名叫".$this->name."，今年".$this->age."岁，最喜欢的事是".$this->like;
}

//    function ziwo(){
//    echo "老师名叫".$this->name."，今年".$this->age."，岁，最喜欢的事是".$this->like;
//}
}